-- GENERATED SPELL FOR [Master Daellis Dawnstrike] --


function spell0_19705(pUnit, Event) --@Frost Arrow,n/a--
pUnit:FullCastSpellOnTarget(35964,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19705', 573, 1)
end

function spell1_19705(pUnit, Event) --@Improved Wing Clip,n/a--
pUnit:FullCastSpellOnTarget(35963,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19705', 10301, 1)
end

function spell2_19705(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19705', 616, 1)
end

function Sorts_19705(pUnit, Event)
local choix_sorts_19705 = math.random(0, 2)
if choix_sorts_19705 == 0 then
pUnit:RegisterEvent('spell0_19705', 1, 1)
end
if choix_sorts_19705 == 1 then
pUnit:RegisterEvent('spell1_19705', 1, 1)
end
if choix_sorts_19705 == 2 then
pUnit:RegisterEvent('spell2_19705', 1, 1)
end
end

function mob19705_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19705', math.random(1500, 3000), 1)
end

function mob19705_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19705_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19705_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19705, 1, 'mob19705_Action')
RegisterUnitEvent(19705, 2, 'mob19705_Leave')
RegisterUnitEvent(19705, 3, 'mob19705_Kill')
RegisterUnitEvent(19705, 4, 'mob19705_Die')
